package com.daylightrobbery.server.packet.game;

import com.daylightrobbery.server.entity.Room;
import com.daylightrobbery.server.packet.type.DataPacket;
import com.daylightrobbery.server.packet.type.RoomDataPacket;
import org.springframework.stereotype.Component;


@Component
public class DicingFinishedPacket implements RoomDataPacket {

    private String uid;
    private int diceNumber;
    private int roomId;
    private int type = 30003;

    public String getUid() {
        return uid;
    }

    public DicingFinishedPacket setUid(String uid) {
        this.uid = uid;
        return this;
    }

    public int getDiceNumber() {
        return diceNumber;
    }

    public DicingFinishedPacket setDiceNumber(int diceNumber) {
        this.diceNumber = diceNumber;
        return this;
    }

    public DicingFinishedPacket setRoomId(int roomId) {
        this.roomId = roomId;
        return this;
    }

    @Override
    public DataPacket process() {
        return this;
    }

    @Override
    public int getType() {
        return this.type;
    }

    @Override
    public int getRoomId() {
        return this.roomId;
    }
}
